package com.newjiabo.common.core.enums;

/**
 * {类内容}
 *
 * @author CaoMengHui.
 * @version 1.0
 * @since 2023/9/15 10:51
 */
public enum ResultCode {

    STATUS_FOR_REVIEW(00001,"状态已审核"),
    USER_CONNECT_ERROR(20012, "联合第三方登录，授权信息错误"),
    USER_AUTO_REGISTER_ERROR(20021, "自动注册失败,请稍后重试"),

    REQUEST_PARAMETER_CANNOT_EMPTY(00101, "请求参数不能为空！"),
    USER_AUTH_EXPIRED(20004, "用户已退出，请重新登录"),
    PACKAGE_INFORMATION_ERROR(30001, "套餐信息错误"),
    REGISTERED_PHOTOGRAPHER(60001,"已注册摄影师"),
    THE_PHOTOGRAPHER_IS_CURRENTLY_APPLYING(60002,"摄影师正在申请中"),
    MORE_SERVICE_INFORMATION_ERROR(40001, "更多服务信息错误"),
    UNABLE_TO_FIND_INFORMATION_FOR_ORDER(50001, "找不到订单信息"),
    ORDER_NOT_EXIST(91002, "订单不存在"),
    REFUND_STATUS_ERROR(91003, "退款状态错误!"),
    REQUEST_REFUND_AMOUNT_GREATER_THAN_PAY_AMOUNT(91004, "申请退款金额大于支付金额"),
    AFTER_SALES_ORDER_ERROR(91005, "售后订单信息错误"),
    AFTER_SALES_AMOUNT_ERROR(91006, "售后金额信息错误"),
    AFTER_SALES_STATUS_ERROR(91007, "售后状态信息错误")
    ;
    private final Integer code;
    private final String message;


    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
